package observer.main.observer;

import observer.main.subject.ISubject;

/**
 * 事业单位用户观察者
 */
public class CompanyObserver implements IObserver {
    @Override
    public void update(ISubject subject) {
        System.out.println("事业单位收到高温预警："+subject.temperatureReport());
    }
}
